# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=tree-sitter-git-commit
pkgver=0_git20211225
_gitrev=066e395e1107df17183cf3ae4230f1a1406cc972
pkgrel=2
pkgdesc="Tree-sitter grammar for git commit messages"
url="https://github.com/the-mikedavis/tree-sitter-git-commit"
arch="all"
license="MIT"
makedepends="tree-sitter-dev"
install_if="tree-sitter-grammars"
source="https://github.com/the-mikedavis/tree-sitter-git-commit/archive/$_gitrev/tree-sitter-git-commit-$_gitrev.tar.gz"
builddir="$srcdir/$pkgname-$_gitrev"
options="!check"  # no tests for shared lib

build() {
	abuild-tree-sitter build
}

package() {
	DESTDIR="$pkgdir" abuild-tree-sitter install
}

sha512sums="
97927a961d0c81b92148c0e6dd6b5554493fed2002f7677305254b750644be53ce6837d8a6bccf857ea6b5c433bc60469d09700e9ce6ac52a2396edfe310f34d  tree-sitter-git-commit-066e395e1107df17183cf3ae4230f1a1406cc972.tar.gz
"
